package com.twm.common;

import java.io.Serializable;

/**
 * @ClassName common
 * @Description TODO
 * @Author twm17
 * @Date 2020/11/11 17:12
 * @Version 1.0
 */
public class ResponseMessage<T> implements Serializable {
    private Integer status;
    private String msg;
    private T data;

    public ResponseMessage(Integer status,String msg,T data){
        this.status = status;
        this.msg = msg;
        this.data = data;
    }
    public ResponseMessage(Integer status,String msg){
        this.status = status;
        this.msg = msg;
    }
    public ResponseMessage(T data){
        this.status = StatusCode.OK.status;
        this.msg = StatusCode.OK.message;
        this.data = data;
    }
}
